package adminDynamicFieldRepository

import (
	adminDynamicFieldModel "gitee.com/krio/ginc/example/internal/admin/dynamic/field/model"
	commonEntry "gitee.com/krio/ginc/example/internal/common/entry/common"
	"github.com/gin-gonic/gin"
)

type DynamicFieldRepos interface {
	DynamicFieldAdd(ctx *gin.Context, one *adminDynamicFieldModel.DynamicField) (int64, error)
	DynamicFieldUpdate(ctx *gin.Context, req *adminDynamicFieldModel.DynamicField) (int64, error)
	DynamicFieldDelete(ctx *gin.Context, id []int64) error
	DynamicFieldDetail(ctx *gin.Context, ids int64) (*adminDynamicFieldModel.DynamicField, bool, error)
	DynamicFieldDetailByInfo(ctx *gin.Context, info *adminDynamicFieldModel.DynamicField) (*adminDynamicFieldModel.DynamicField, bool, error)
	DynamicFieldList(ctx *gin.Context, req *commonEntry.ListCommonReq) ([]*adminDynamicFieldModel.DynamicField, int64, error)
}
